<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import ="java.util.*,AdminController.AdminAce.AdminAceBean" %>
<%@ include file="/Manage/chart/FusionCharts.jsp" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/Main/Css/Admin.css" />
<script src="/KOMORIUTA/Manage/jquery.js" type="text/javascript"></script>
<script src="/KOMORIUTA/Manage/manage.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
AdminAceBean list[] = (AdminAceBean[])request.getAttribute("list");
String strXML = "";
if( list != null){
%>
	<table width="700px" border="0">
		<tr>
		  <td width="345" colspan="2">提供会員
		  <hr /></td>
			<td width="1">&nbsp;</td>
			<td width="345" colspan="2">依頼会員
		  <hr /></td>
		</tr>
		<tr>
			<td width="145"></td>
			<td width="200">
			  <form id="yeargo" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=2&list=1">
				  <select name="year" id="question">
					  <option value="0">***年別検索***</option>
					  <option value="2009">2009</option>
					  <option value="2010">2010</option>
					  <option value="2011">2011</option>
					  <option value="2012">2012</option>
					  <option value="2013">2013</option>
				  </select>
					<a class="black" href="javascript:yeargo('old');">検索</a>
			</form>
				
		  </td>
			<td></td>
			<td width="145"></td>
			<td width="200">
				<form id="yeargoY" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=2&list=2">
					<select name="year" id="question">
						<option value="0">***年別検索***</option>
						<option value="2009">2009</option>
						<option value="2010">2010</option>
						<option value="2011">2011</option>
						<option value="2012">2012</option>
						<option value="2013">2013</option>
					</select>
					<a class="black" href="javascript:yeargo('young');">検索</a>
				</form>
			</td>
		</tr>
		<tr>
			<form id="yeargom" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=3&list=1">
			<td align="right">
			
				<select name="year" id="year">
					<option value="0">年</option>
					<option value="2009">2009</option>
					<option value="2010">2010</option>
					<option value="2011">2011</option>
					<option value="2012">2012</option>
					<option value="2013">2013</option>
				</select>
			</td>
			<td>
				<select name="month" id="month">
					<option value="0">****月別検索****</option>
					<option value="01">01</option>
					<option value="02">02</option>
					<option value="03">03</option>
					<option value="04">04</option>
					<option value="05">05</option>
					<option value="06">06</option>
					<option value="07">07</option>
					<option value="08">08</option>
					<option value="09">09</option>
					<option value="10">10</option>
					<option value="11">11</option>
					<option value="12">12</option>
				</select>
				<a class="black" href="javascript:monthgo('old');">検索</a>
			</td>
			</form>
			<td></td>
			<form id="yeargomY" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=3&list=2">
			<td align="right">
				<select name="year" id="year">
					<option value="0">年</option>
					<option value="2009">2009</option>
					<option value="2010">2010</option>
					<option value="2011">2011</option>
					<option value="2012">2012</option>
					<option value="2013">2013</option>
				</select>
			</td>
			<td>
				<select name="month" id="month">
					<option value="0">****月別検索****</option>
					<option value="01">01</option>
					<option value="02">02</option>
					<option value="03">03</option>
					<option value="04">04</option>
					<option value="05">05</option>
					<option value="06">06</option>
					<option value="07">07</option>
					<option value="08">08</option>
					<option value="09">09</option>
					<option value="10">10</option>
					<option value="11">11</option>
					<option value="12">12</option>
				</select>
				<a class="black" href="javascript:monthgo('young');">検索</a>
			</td>
			</form>
		</tr>
		<tr>
			<td align="center" colspan="5">
					<% 
						if(list != null && list.length >0){
							strXML += "<graph  baseFontSize='10' caption='Decline in Net Interest Margins of Asian Banks (1995-2001)'　yaxisname='会員数' xaxisname='年/月別' hovercapbg='FFFFDD' hovercapborder='000000'numdivlines='4'>";
						
							strXML += "<categories>";
							 
							for(int i = 0 ; i<list.length ;i++){
								
								strXML += "<category name='"+list[i].getMem_Date().substring(3,5)+"'/>";
							}
							
							strXML += "</categories>";
							strXML += "<dataset seriesname='会員数'>";
							for(int j=0; j<list.length;j++){
								strXML += "<set color='AFD8F8' value='"+list[j].getCount()+"'/>";
							}
							strXML += "</dataset>";
						}
						strXML +="</graph>";
						String chartCode = createChartHTML("/KOMORIUTA/Manage/chart/FCF_MSLine.swf","",strXML,"chart1",500,350,false);
						out.print(chartCode);
					
					%>
			</td>
		</tr>
	</table>
<%
}else{
%>
	<table width="700px" border="0">
		<tr>
		  <td width="345" colspan="2">提供会員
		  <hr /></td>
			<td width="1">&nbsp;</td>
			<td width="345" colspan="2">依頼会員
		  <hr /></td>
		</tr>
		<tr>
			<td width="145">&nbsp;</td>
		  <td width="200">
			<form id="yeargo" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=2&list=1">
				<select name="year" id="year">
					<option value="0">***年別検索***</option>
					<option value="2009">2009</option>
					<option value="2010">2010</option>
					<option value="2011">2011</option>
					<option value="2012">2012</option>
					<option value="2013">2013</option>
				</select>
					<a class="black" href="javascript:yeargo('old');">検索</a>
			</form>
				
		  </td>
			<td>&nbsp;</td>
			<td width="145">&nbsp;</td>
			<td width="200">
				<form id="yeargoY" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=2&list=2">
					<select name="year" id="question">
						<option value="0">***年別検索***</option>
						<option value="2009">2009</option>
						<option value="2010">2010</option>
						<option value="2011">2011</option>
						<option value="2012">2012</option>
						<option value="2013">2013</option>
					</select>
					<a class="black" href="javascript:yeargo('young');">検索</a>
				</form>
			</td>
		</tr>
		<tr>
			<form id="yeargom" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=3&list=1">
			<td align="right">
				<select name="year" id="year">
					<option value="0">年</option>
					<option value="2009">2009</option>
					<option value="2010">2010</option>
					<option value="2011">2011</option>
					<option value="2012">2012</option>
					<option value="2013">2013</option>
				</select>
			</td>
			<td>
				<select name="month" id="month">
					<option value="0">****月別検索****</option>
					<option value="01">01</option>
					<option value="02">02</option>
					<option value="03">03</option>
					<option value="04">04</option>
					<option value="05">05</option>
					<option value="06">06</option>
					<option value="07">07</option>
					<option value="08">08</option>
					<option value="09">09</option>
					<option value="10">10</option>
					<option value="11">11</option>
					<option value="12">12</option>
				</select>
				<a class="black" href="javascript:monthgo('old');">検索</a>
			</td>
			</form>
			<td>&nbsp;</td>
			<form id="yeargomY" method="post" action="/KOMORIUTA/AdminAce.do?action_code=memList&num=3&list=2">
			<td align="right">
				<select name="year" id="year">
					<option value="0">年</option>
					<option value="2009">2009</option>
					<option value="2010">2010</option>
					<option value="2011">2011</option>
					<option value="2012">2012</option>
					<option value="2013">2013</option>
				</select>
			</td>
			<td>
				<select name="month" id="month">
					<option value="0">****月別検索****</option>
					<option value="01">01</option>
					<option value="02">02</option>
					<option value="03">03</option>
					<option value="04">04</option>
					<option value="05">05</option>
					<option value="06">06</option>
					<option value="07">07</option>
					<option value="08">08</option>
					<option value="09">09</option>
					<option value="10">10</option>
					<option value="11">11</option>
					<option value="12">12</option>
				</select>
				<a class="black" href="javascript:monthgo('young');">検索</a>
			</td>
			</form>
		</tr>
	</table>

<%} %>

</body>
</html>